package auth

import org.springframework.stereotype.Component
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

import javax.annotation.Resource

@Component
class WebConfigurer implements WebMvcConfigurer {

    @Resource
    JwtDecodeInterceptor jwtDecodeInterceptor;

    @Override
    void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(jwtDecodeInterceptor);
    }
}